/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张宇田
 * Date: 2024-09-19
 * Time: 20:06
 */
import java.util.Scanner;
public class Test {
     public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);

            int[] scores = new int[sc.nextInt()];

            //循环给数组赋值
            for(int i = 0 ; i< scores.length;i++){
                scores[i] = sc.nextInt();
            }
            /********** Begin **********/
            //在这里计算数组scores的平均值和最大值
            float ave = 0.0f;
            float max = 0.0f;
            float add = 0.0f;
            for(int i = 0;i<scores.length;i++){
                add +=scores[i];
            }
            ave = add / scores.length;
            for(int i = 0;i<scores.length;i++){
                if(scores[i]>max){
                    max = scores[i];
                }
            }




            System.out.println("平均值：" +ave );
            System.out.println("最大值：" +max );
            /********** End **********/
        }
    }


